package com.snoob.springboot.workorder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lixing_java@163.com
 * @since 2022-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("service_work_order")
public class WorkOrderEntity implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /** 外键：service_work_order.id */
    @TableField("work_order_enterprise_id")
    private Long workOrderEnterpriseId;

    /**
     * 工单编号
     */
    @TableField("order_code")
    private String orderCode;

    /**
     * 工单名称
     */
    @TableField("order_name")
    private String orderName;

    /** 
     * 工单进度
     */
    @TableField("order_progress")
    private Integer orderProgress;

    /** 
     * 是否展示：0不展示，1展示
     */
    @TableField("show_state")
    private Integer showState;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


}
